package ecustom.common.util;

import org.apache.log4j.Logger;

public class ByteUtil {
	
	private static Logger log = Logger.getLogger(ByteUtil.class);
	
	public static byte[] toBytes(String str) {
		try {
			return str.getBytes(CustomUtil.DEFAULT_CHARSET_NAME);
		} catch (Exception e) {
			log.error("toBytes() " + e);
		}
		return null;
	}
}
